# vim: ft=muttrc

# set default
  color normal      white         default

# main colors
  color status      green         default
  color indicator   black         white
  color tree        blue          default
  color error       brightred     default
  color message     brightyellow  default

#
# message states
#
# order matters here since some states override others
#

# messages to me
uncolor index "~P"
  color index brightblack default "~P"

# threads containing new messages
uncolor index "~(~N)"
  color index brightblue default "~(~N)"

# new messages themselves
uncolor index "~N"
  color index brightyellow default "~N"

# tagged
uncolor index "~T"
  color index brightgreen default "~T"

# Code review
uncolor index "~s '^\\[Gerrit\\]'"
  color index color136 default "~f 'gerrit@wikimedia.org'"

uncolor index "~s '^\\[Differential\\]'"
  color index color136 default "~s '^\\[Differential\\]'"

# Tasks
uncolor index "~s '^\\[Maniphest\\]'"
  color index color129 default "~s '^\\[Maniphest\\]'"

color body black green "(tyler|cipriani|thcipriani)"

# deleted
uncolor index "~D"
  color index brightred default "~D"

# flagged
uncolor index "~F"
  color index black green "~F"

# set up the headers
  color header     brightyellow  default "^from:"
  color header     yellow        default "^to:"
  color header     yellow        default "^cc:"
  color header     blue          default "^date:"
  color header     brightblue    default "^subject:"

# message bodies
  color attachment brightblack   default
  color search     red           brightblack
  color signature  cyan          default
  color tilde      blue          default

# gpg
  color body       brightgreen   default "^gpg: Good signature.*"
  color body       brightred     default "^gpg: BAD signature.*"
  color body       yellow        default "^gpg: Can't check signature.*"

# urls
  color body       brightblue    default "(^|<| )mailto:[^ ]+@[^ ]( |>|$)"
  color body       brightblue    default "(^|<| )(http|https|ftp|file|telnet|news|finger)://[^ ]+( |>|$)"

# smileys, the right way and the backward-ass euro way
  color body       brightmagenta default "(^| )+(|[<>|])[8;:](|[^ ])[)(/|DOPS]( |$)+"
  color body       brightmagenta default "(^| )+[)(/|DOPS](|[^ ])[8;:](|[<>|])( |$)+"

# *bold*, _underline_, and /italic/
  color body       brightcyan    default "(^| )\\*[^*]+\\*( |$)"
  color body       brightcyan    default "(^| )_[^_]+_( |$)"
  color body       brightcyan    default "(^| )/[^/]+/( |$)"

# quote blocks
  color quoted     magenta       default
  color quoted1    cyan          default
  color quoted2    green         default
  color quoted3    magenta       default
  color quoted4    cyan          default
  color quoted5    green         default
  color quoted6    magenta       default
  color quoted7    cyan          default
